<?php $archive=new Zmsun\Copen\DataPackageArchive($this->serviceManager,new Zmsun\Copen\OpenLib($this->serviceManager->get("Database"),$this->serviceManager->get("DBTablePrefix")));$name=$_POST['name']??"";$errorMsg="";$archive->create($name,$errorMsg);echo json_encode(array('status'=>$errorMsg ?'error':'ok','info'=>$errorMsg));